package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.ProductDetails;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: ProductDetailsMapper
 * Package: com.atguigu.spzx.manager.mapper
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/6 16:33
 * @Version 1.0
 */
@Mapper
public interface ProductDetailsMapper {
    /**
     * 保存商品详情
     * @param productDetails
     */
    void save(ProductDetails productDetails);

    /**
     * 根据productId获取productDetails
     * @param id
     * @return
     */
    ProductDetails getByProductId(Long id);

    /**
     * 根据id修改
     * @param productDetails
     */
    void updateById(ProductDetails productDetails);

    /**
     * 根据productId删除
     * @param productId
     */
    void deleteByProductId(Long productId);
}
